﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TroTro
{
    class Text
    {
        private readonly SpriteFont _font;
        private readonly String _text;
        private readonly Vector2 _position;

        public Color Color { get; set; }

        public Text(String text, SpriteFont spriteFont, Vector2 position)
        {
            _text = text;
            _font = spriteFont;
            _position = position;
            Color = Color.White;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(_font, _text, _position, Color);
        }
    }
}
